<html ng-app="diandanbao" class="ng-scope">
<head>
    <style type="text/css">@charset "UTF-8";
    [ng\:cloak], [ng-cloak], [data-ng-cloak], [x-ng-cloak], .ng-cloak, .x-ng-cloak, .ng-hide:not(.ng-hide-animate) {
        display: none !important;
    }

    ng\:form {
        display: block;
    }</style>
    <meta name="viewport"
          content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
    <meta content="telephone=no" name="format-detection">
    <link rel="shortcut icon" href="data:image/x-icon;," type="image/x-icon">
    <link data-turbolinks-track="true" href="{RES}/mobile/{php echo $this->cur_tpl}/assets/diandanbao/weixin.css" media="all" rel="stylesheet">
    <title>{$setting['title']}</title>
    <style type="text/css">
        @media screen {  .smnoscreen {  display: none  }  }
        @media print {  .smnoprint {  display: none  }  }
    </style>
    <style type="text/css">
        .gray2,.qgimg-ing {
            position:fixed;
            width:100%;
            background-color:rgba(0,0,0,0.7);
            display:none;
            z-index:99998;
            top:0;
            text-align: center;
        }
        .gray2 img{width:70%;margin-top:50px; }
    </style>
</head>
<body>
<div class="gray2" style="display: none;">
    <img src="{RES}images/share.png">
</div>
<div style="height: 100%;" class="ng-scope">
    <div class="ddb-nav-header ng-scope" common-header="">
        <div class="nav-left-item" onclick="location.href='{php echo $this->createMobileUrl('waprestlist', array(), true)}';"><i class="fa fa-angle-left"></i></div>
        <div class="header-title ng-binding">用户中心</div>
    </div>
    <!--footer-->
    {php include $this->template($this->cur_tpl.'/_menu');}
    <div id="user-profile-page" class="main-view ng-scope">
        <div id="top-user-avatar">
            <div class="avatar-section">
                <div class="avatar">
                    <img class="ng-scope" src="{php echo tomedia($fans['headimgurl'])}">
                </div>
                <div class="favorite-nav-item">
                <span class="my-favorite-button">
                    <a href="{php echo $this->createMobileUrl('collection', array(), true)}" class="ng-binding">
                        <i class="fa fa-star"></i> 我的收藏 ({$count})
                    </a>
                </span>
                </div>
                <div class="name overflow-ellipsis ng-binding">
                    (ID: {$user[uid]}) {$fans['nickname']}
                </div>
            </div>
            <div class="user-nav-section">
                <div class="user-nav-item">
                    <a href="#/addresses">
                        <i class="fa fa-yen"></i>
                        <div class="text">余额:{$coin}</div>
                    </a>
                </div>
                <div class="user-nav-item">
                    <a href="#/wechat_share_records">
                        <i class="fa fa-money"></i>
                        <div class="text">积分:{$score}</div>
                    </a>
                </div>
                <div class="user-nav-item">
                    <a href="{if !empty($setting['link_sign'])}{$setting['link_sign']}{else}index.php?i={$weid}&c=mc&a=card&do=credit{/if}">
                        <i class="fa fa-tag"></i>
                        <div class="text">{if !empty($setting['link_sign_name'])}{$setting['link_sign_name']}{else}每日签到{/if}</div>
                    </a>
                </div>
                <!--<div class="user-nav-item ng-scope">-->
                    <!--<a href="#/recharge_products">-->
                        <!--<i class="fa fa-plus"></i>-->
                        <!--<div class="text">会员充值</div>-->
                    <!--</a>-->
                <!--</div>-->
            </div>
        </div>
        <div class="space-12"></div>
        <div class="section promotion-nav-section">
            <!--<a ng-click="go_to_pay_code()" class="arrow-right">-->
                <!--<i class="fa fa-qrcode label-orange"></i> 会员付款码-->
            <!--</a>-->
            <a href="{php echo $this->createMobileUrl('order', array(), true)}" class="arrow-right">
                <i class="fa fa-money label-green"></i> 订单中心
            </a>
            <a href="{php echo $this->createMobileUrl('mycoupon', array(), true)}" class="arrow-right">
                <i class="fa fa-money label-red"></i> 优惠券
            </a>
            <a href="{if !empty($setting['link_card'])}{$setting['link_card']}{else}{if IMS_VERSION == '0.8'}index.php?i={$weid}&c=mc&a=card&do=mycard{else}index.php?i={$weid}&c=mc&a=bond&do=card{/if}{/if}" class="arrow-right">
                <i class="fa fa-credit-card label-orange"></i> {if !empty($setting['link_card_name'])}{$setting['link_card_name']}{else}会员卡{/if}
            </a>
            {if $is_savewine==1}
            <a href="{php echo $this->createMobileUrl('savewinelist', array(), true)}" class="arrow-right">
                <i class="fa fa-ge label-blue"></i> 酒水寄存
            </a>
            {/if}
            {if $setting['is_commission']==1}
            <a href="#" class="arrow-right linkKeFu">
                <i class="fa fa-mail-forward label-pink"></i> 邀请好友获取佣金
            </a>
            <a href="{php echo $this->createMobileUrl('mymemberlist', array(), true)}" class="arrow-right">
                <i class="fa fa-users label-orange"></i> 我邀请的好友
            </a>
            {/if}
        </div>
        <div class="space-12"></div>
        <div class="section copy-right-section">
            {if $is_permission == true}
            <a class="arrow-right" href="{php echo $this->createMobileUrl('adminorder', array(), true)}">
                <i class="fa fa-cog label-red"></i> 商家订单管理
            </a>
            {/if}

            <!--<a href="#/contact_us" class="arrow-right">-->
                <!--<i class="fa fa-headphones label-blue"></i>-->
                <!--联系我们-->
            <!--</a>-->
            <a class="arrow-right ng-binding ng-scope" href="{if !empty($config['copyright_url'])}{$config['copyright_url']}{else}#{/if}">
            {if !empty($config['copyright_name'])}
            <i class="fa fa-globe label-green"></i> 技术支持: {$config['copyright_name']}
            {else}
            <i class="fa fa-globe label-green"></i> 技术支持: {$_W['account']['name']}
            {/if}
            </a>
        </div>
        <!--<div class="version space-64">-->
            <!--Build version 5.1-->
            <!--<br>-->
            <!--<span class="ng-scope">迷失卍国度</span>-->
        <!--</div>-->
    </div>
</div>
<script src="{RES}/mobile/{php echo $this->cur_tpl}/assets/diandanbao/jquery-1.11.3.min.js"></script>
<script>
    $(function () {
        $(".linkKeFu").click(function () {
//            alert('debug');
            $(".gray2").show();
            $(".gray2").css("height", $(document).height());
//            $(".link-KF").css("top", $(window).height() / 2 - 178);
//            $(".link-KF").show();
        });
        $(".gray2,.con-ma").click(function () {
            $(".link-KF").hide();
            $(".gray2").hide();
        });
    });
</script>
{php echo register_jssdk(false);}
<script>
    wx.ready(function () {
        sharedata = {
            title: '{$share_title}',
            desc: '{$share_desc}',
            link: '{$share_url}',
            imgUrl: '{$share_image}',
            success: function(){

            },
            cancel: function(){

            }
        };
        wx.onMenuShareAppMessage(sharedata);
        wx.onMenuShareTimeline(sharedata);
    });
</script>
</body>
</html>